import Router from 'koa-router';
import HotTitleApiController from "../controller/hotTitleApiController";

const router = new Router();

router.prefix('/api/hotTitle');

router
    /**
     * /api/hotTitle/create
     *  post:
     *      summary: 保存热词
     *          tags: [热词]
     *      consumes:
     *          - application/json
     *      parameters:
     *          - in: body
     *            shop_id: 店铺id
     *            ImgUrl: 图片链接
     *            ItemId: ItemId
     *            NeedCheckLogo: bool类型， 默认true
     *
     */
    .post('/create', HotTitleApiController.create)
    /**
     * /api/hotTitle/list
     *  post:
     *      summary: 获取热词
     *          tags: [热词]
     *      consumes:
     *          - application/json
     *      parameters:
     *          - in: body
     *            shop_id: 店铺id
     *            ImgUrl: 图片链接
     *            ItemId: ItemId
     *            NeedCheckLogo: bool类型， 默认true
     *
     */
    .get('/list', HotTitleApiController.list)
    /**
     * /api/hotTitle/delete
     *  post:
     *      summary: 删除热词
     *          tags: [热词]
     *      consumes:
     *          - application/json
     *      parameters:
     *          - in: body
     *            shop_id: 店铺id
     *            ImgUrl: 图片链接
     *            ItemId: ItemId
     *            NeedCheckLogo: bool类型， 默认true
     *
     */
    .post('/delete', HotTitleApiController.delete)

export default router;